//
//  DownloadAlertView.m
//  CroozHTMLEditer
//
//  Created by 自分 on 11/12/07.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "DownloadAlertView.h"

@implementation DownloadAlertView

@synthesize activityView;
@synthesize alertView;

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        alertView = [[UIAlertView alloc] initWithTitle:@"通信中" message:@"しばらくお待ちください。\n\n" delegate:nil cancelButtonTitle:nil otherButtonTitles: nil];
        
        activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
        activityView.frame = CGRectMake(120,80, 50, 50);

        [activityView startAnimating];
        [alertView addSubview:activityView];
        
        [alertView show];
        self.backgroundColor = [UIColor blackColor];
        self.alpha = 0.7;
        

    }
    
    return self;
}


- (void)dealloc{
    [alertView dismissWithClickedButtonIndex:0 animated:YES];
    [alertView release];
    [activityView release];
    [super dealloc];
}
@end
